<template>
    <div>
        <vo-basic :data="treeData" zoom="true"  nodeTitle="label"></vo-basic>
    </div>
</template>

<script>
    import { VoBasic } from 'vue-orgchart'
    export default {
        components: { VoBasic },
        data() {
            return {
                treeData:''
            }
        },
        created () {
            let that = this
            that.$http.post(this.$conf.baseURL + '/queryOrganizationTree', {'id':0})
                .then(function (res) {
                    that.treeData = res.data.data
                })
        }
    }
</script>
